package com.booking.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author Qikai.Lin
 * @date 2023/4/21
 */
@Getter
@AllArgsConstructor
public enum BookingErrorCode {

    UNKNOWN_ERROR("9999", "未知错误"),
    PARAM_ERROR("0001", "参数错误"),
    TIME_OUT_ERROR("0002", "请求超时"),
    UNKNOWN_HOST_ERROR("0003", "系统处理中，请稍后再试"),
    USER_EXIST("1001", "用户已存在"),
    USER_NOT_EXIST("1002", "用户不存在"),
    USERNAME_PASSWORD_ERROR("1003", "用户名或密码不正确"),
    ORDER_NOT_EXIST("2001","订单不存在"),
    BOOKING_NOT_PAY("2002","定金未支付"),
    BOOKING_PAYED("2003","定金已支付"),
    ALREADY_CHECKED("2004","订单已入住"),
    ORDER_ALREADY_PAYED("2005","订单已支付"),
    ORDER_NOT_PAYED("2006","订单未支付"),
    NOT_IN_BOOKING_TIME("2007","不在预订时间内"),
    ORDER_NOT_END("2008","订单未完成"),
    ORDER_NOT_CHECK("2009", "订单未入住"),
    ORDER_NOT_FOR_THIS_USER("2010", "该用户不是此订单用户"),
    ORDER_ALREADY_COMMENTED("2011", "订单已评价过"),
    ORDER_ALREADY_END("2012", "订单已完成且，无法重复取消"),
    ORDER_ALREADY_FINISHED("2013", "订单已完成"),
    HOMESTAY_NOT_EXIST("3001","民宿不存在"),
    ROOM_NOT_EXIST("4001","民宿房间不存在"),
    ROOM_ALREADY_BOOKING("4002", "民宿房间在此时间段内已被预订"),
    SERVICE_NOT_EXIST("5001","民宿服务不存在"),
    SERVICE_ALREADY_BOOKING("5002", "民宿服务在此日期已被预订"),
    GROUPING_NOT_EXIST("6001","拼团不存在"),
    GROUPED_ALREADY("6002","活动已成团"),
    NO_GROUPED("6003","活动未成团"),
    ;
    private final String code;
    private final String msg;
}
